package com.pubinfo.passbook.common.entity;

import com.baomidou.mybatisplus.annotation.*;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.util.Date;

/**
 * 审核用户表(保存枚举的用户)
 *
 * @TableName t_rule_user
 */
@TableName(value = "t_rule_user")
@Data
@NoArgsConstructor
@ApiModel(value = "TRuleUser", description = "审核用户表(保存枚举的用户)")
public class TRuleUser implements Serializable {
  /**
   *
   */
  @TableId(type = IdType.ASSIGN_UUID, value = "id")
  private String id;
  
  /**
   *
   */
  @ApiModelProperty("用户名")
  private String name;
  
  /**
   *
   */
  @ApiModelProperty("角色id")
  private String roleId;
  
  @ApiModelProperty("身份证号")
  private String idNo;
  @TableField(fill = FieldFill.INSERT)
  @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
  private Date createTime;
  
  @ApiModelProperty("区县表id")
  private String districtId;
  @TableField(fill = FieldFill.INSERT_UPDATE)
  @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
  private Date updateTime;
  
  @ApiModelProperty("最后有效期时间，超过此时间报销不生效")
  @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
  private Date endDate;
  
  @TableField(exist = false)
  private static final long serialVersionUID = 1L;
}